package com.horizon.mobile.view;

import com.horizon.mobile.model.Business;

import java.util.Comparator;

/**
 * Created by Administrator on 2017-8-8.
 */

public class MyComparator implements Comparator {
    @Override
    public int compare(Object o, Object t1) {
        Business b1 = (Business) o;
        Business b2 = (Business) t1;
        if (b1.getOrderno() < b2.getOrderno()) {
            return 1;
        } else {
            return 0;
        }
    }
}
